export function logBase(base: number, value: number) {
  return Math.log2(value) / Math.log2(base)
}

export function withLogBase(base: number) {
  return (value: number) => Math.log2(value) / Math.log2(base)
}